<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/10/11
 * Time: 11:20
 */

namespace app\flower\service;


class CommonService
{
    /**
     * 文件删除
     *
     */
    public function filesdelete($url){
        if( file_exists($url) && is_file( $url ) )
        {
            if( unlink( $url ) )
            {
                return true;
            }
            else
            {
                return false;
            }
        }
        else
        {
            return false;
        }
    }
}